package com.nervenets.shopping.hibernate.dao;

import com.nervenets.general.hibernate.dao.BaseDao;
import com.nervenets.shopping.hibernate.domain.user.Manager;

import java.util.List;

public interface ManagerDao extends BaseDao<Manager> {
    Manager findTop1ByOrderById();

    Manager findByMobile(String mobile);

    long countByRoleGroupsId(Long roleGroups_id);

    List<Manager> findAllByRoleGroupsId(Long roleGroups_id);
}
